#include<stdio.h>
#include<unistd.h>
#include"test.h"
#include<string.h>
#define num  101
#define symbol '='
void  test()
{
    char bur[num];
    memset(bur,'\0',sizeof(bur));
    const char* a = "\\|/-";
    int tmp = strlen(a),cnt = 0;
    while(cnt <=num-1 )
    {
        printf("[%-100s][%d%%][%c]\r",bur,cnt,a[cnt%tmp]);
        fflush(stdout);
        bur[cnt] = symbol;
        usleep(50000);
        cnt++;    
    }
    printf("\r\n");

}



